package indi.jp.project.business.device.dao;

import indi.jp.project.business.device.entity.DevicePurchase;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 设备采购DAO
 *
 * @author jiangping
 * @date 2022/5/16
 */
@Mapper
public interface DevicePurchaseDAO {

    List<DevicePurchase> queryList(DevicePurchase query) throws SQLException;

    int queryCount(DevicePurchase query) throws SQLException;

    int insert(DevicePurchase entity) throws SQLException;

    int update(DevicePurchase entity) throws SQLException;

    int deleteById(String id) throws SQLException;

    DevicePurchase findById(String id) throws SQLException;
}
